var count = 0;
function test(o,mredio)
{

   var commend = mredio.value;
   for(var i=0;i<mredio.length;i++)
	{
		
		if(mredio[i].checked){
	
			commend = mredio[i].value;
			count  += parseFloat(commend);
			switch(o){ 
				case 1:{ 
				document.getElementById('test1').style.display = "block"; 
				document.getElementById('test2').style.display = "none"; 
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 2:{ 
				document.getElementById('test1').style.display = "none"; 
				document.getElementById('test2').style.display = "block"; 
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 3:{ 
				document.getElementById('test1').style.display = "none";
				document.getElementById('test2').style.display = "none";  
				document.getElementById('test3').style.display = "block"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 4:{ 
				document.getElementById('test1').style.display = "none"; 
				document.getElementById('test2').style.display = "none"; 
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "block"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 5:{ 
				document.getElementById('test1').style.display = "none";
				document.getElementById('test2').style.display = "none";  
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "block"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 6:{ 
				document.getElementById('test1').style.display = "none"; 
				document.getElementById('test2').style.display = "none"; 
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "block"; 
				break;
				}
case 7:
    {

        if (count >= 6 && count <=17) {
            MM_showHideLayers('rel', '', 'show'); DivDoMask();
        }
        if (count >=18 && count <=30) {
            MM_showHideLayers('rel2', '', 'show'); DivDoMask()
        }
        if (count >=31 && count <=42) {
            MM_showHideLayers('rel3', '', 'show'); DivDoMask()
        }
        if (count >=43 && count <=54) {
            MM_showHideLayers('rel4', '', 'show'); DivDoMask()
        }
        break;
    }
			} 	
		  break;
		}
		
	}
}
function test1(o,mredio)
{


   for(var i=0;i<mredio.length;i++)
	{
		
		if(mredio[i].checked){
			
			commend = mredio[i].value;
			count = count - commend;
			
			switch(o){ 
				case 1:{ 
				document.getElementById('test1').style.display = "block"; 
				document.getElementById('test2').style.display = "none"; 
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 2:{ 
				document.getElementById('test1').style.display = "none"; 
				document.getElementById('test2').style.display = "block"; 
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 3:{ 
				document.getElementById('test1').style.display = "none";
				document.getElementById('test2').style.display = "none";  
				document.getElementById('test3').style.display = "block"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 4:{ 
				document.getElementById('test1').style.display = "none"; 
				document.getElementById('test2').style.display = "none"; 
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "block"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 5:{ 
				document.getElementById('test1').style.display = "none";
				document.getElementById('test2').style.display = "none";  
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "block"; 
				document.getElementById('test6').style.display = "none"; 
				break;
				} 
				case 6:{ 
				
				document.getElementById('test1').style.display = "none"; 
				document.getElementById('test2').style.display = "none"; 
				document.getElementById('test3').style.display = "none"; 
				document.getElementById('test4').style.display = "none"; 
				document.getElementById('test5').style.display = "none"; 
				document.getElementById('test6').style.display = "block"; 
				break;
				} 
			
			} 
			
			
		  break;
		}
		
	}
}



